package org.weasel.data;

import org.weasel.business.Company;

public class PersistencyAdapter {
	
	public PersistencyAdapter(){
		
	}
	
	public void save(String path, Company company) throws Exception{
		XMLSaver saver = new XMLSaver();
		saver.save(path, company);
	}
	
	public Company load(String path) throws Exception{
		XMLLoader loader = new XMLLoader();
		return loader.load(path);
	}

}
